import axios from './index';
import Qs from 'qs';

// 运行环境
let apis = "";
if(process.env.NODE_ENV === 'development'){
	apis = "apis";
} else if(process.env.NODE_ENV === 'production'){
	apis = "http://xysoul.com:6062";
}

// 登录
export const LoginRequest = data => {
	return axios({
		url: apis + '/user/login',
		method: 'post',
		data: Qs.stringify(data)
	});
};